From: Keir Fraser Date: Tue, 26 May 2009 09:03:09 +0000 (+0100) Subject: xend: Fix xm pci-detach for inactive devices X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13885 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b562a316db926c871aac5e9484372c2f7c3d1e60;p=xen.git xend: Fix xm pci-detach for inactive devices In the case where a device is attached to an inactive domain and then removed before the domain is activated it won't have a vslot assigned, but it should still be valid to remove it. I don't think that there are any other cases where vslot can be invalid. Signed-off-by: Simon Horman --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index e2482c1fe9..7804fdb421 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1130,9 +1130,6 @@ class XendDomainInfo: if devnum >= pci_len: raise VmError("Device @ vslot 0x%x doesn't exist." % (vslot)) - if vslot == AUTO_PHP_SLOT: - raise VmError("Device @ vslot 0x%x doesn't support hotplug." % (vslot)) - # Check the co-assignment. # To pci-detach a device D from domN, we should ensure: for each DD in the # list of D's co-assignment devices, DD is not assigned (to domN).